<?php
	$connect=mysql_connect('localhost','root','192510');
	mysql_select_db('news',$connect);
	if($_POST['submit']){
		$web=isset($_POST['title'])?trim($_POST['title']):"";
		$sql="INSERT INTO wangzhan(name) VALUES('$web')";
		mysql_query($sql);
		echo "<script>location='select_web.php'</script>";
	}

?>